package com.ruoyi.system.domain.bo;

import com.ruoyi.common.core.validate.AddGroup;
import com.ruoyi.common.core.validate.EditGroup;
import lombok.Data;
import lombok.EqualsAndHashCode;
import javax.validation.constraints.*;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 商品业务对象 dy_goods
 *
 * @author ruoyi
 * @date 2024-06-20
 */

@Data
@EqualsAndHashCode(callSuper = true)
public class DyGoodsBo extends BaseEntity {

    /**
     * id
     */
    private Long id;

    /**
     * 名称
     */
    @NotBlank(message = "名称不能为空", groups = { AddGroup.class, EditGroup.class })
    private String name;

    /**
     * 主播id
     */
    private Long anchorId;

    /**
     * 金额
     */
    @NotNull(message = "金额不能为空", groups = { AddGroup.class, EditGroup.class })
    private Integer amount;

    /**
     * 图片
     */
    private String img;

    /**
     * 头像
     */
    private String faceImg;

}
